package www.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import www.service.VehicleService;

import java.util.List;
import java.util.HashMap;
import java.util.Map;

@RestController
public class VehicleController {

    @Autowired
    private VehicleService vehicleService;

    @GetMapping("/getusableVehicle")
    public List<String> getUsableVehicle(@RequestParam String env) throws Exception {
        return vehicleService.getUsableVehicle(env);
    }
    @GetMapping("/getusableVehicle2")
    public List<String> getusableVehicle2(@RequestParam String env) throws Exception {
        return vehicleService.getUsableVehicle2(env);
    }
}